import { Schema } from 'mongoose';

export const LocationSchema = new Schema({
  longitude: {
    type: String,
    required: true
  },
  latitude: {
    type: String,
    required: true
  },
  country: {
    type: String,
    required: true
  },
  state: {
    type: String,
    required: true
  },
  city: {
    type: String,
    required: true
  },
  street: {
    type: String,
    required: false
  }
});